]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Fix stuck grabs when mashing the overlay-key
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 18 Nov 2012 15:49:31 +0000 (10:49 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 19:38:07 +0000 (14:38 -0500)
When pressing the overlay key three times, things went like this:

  * show(), push a modal
  * hide(), will pop a modal after hiding is done
  * show(), push a modal

Thus, when the showing is done, and then it activated the hiding,
it popped one modal, but not the other. This patch changes things
to be:

  * show(), push a modal
  * hide(), will pop a modal after hiding is done
  * hide(), no-op

That is, mashing the overlay-key when it's showing will always make
it hide, not mashing an odd number of times.

https://bugzilla.gnome.org/show_bug.cgi?id=688589

js/ui/overview.js

index 9c913788532d1adbad6a76ed1082441d5eb4b96b..da4dbae149b99014c6cc5d832e452408e7451918 100644 (file)
@@ -562,7 +562,7 @@ const Overview = new Lang.Class({
         if (this.isDummy)
             return;
 
-        if (this._shown)
+        if (this.visible)
             this.hide();
         else
             this.show();